<!DOCTYPE html>

<?php
   //查看一下，本地有没有这个cname cookie
   if (isset($_COOKIE["cname"]))
        $varname=$_COOKIE["cname"];
   else
        $varname="";
   if (isset($_COOKIE["time"]))
        $time=$_COOKIE["time"];
    else 
    
     $time="";

?>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <link href="css/css1.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <div id="login">
            
            <form action="dologin.php" method="post">
                <ul>
                    <li>用户名：<input class="input_txt" type="text" name="username" value="<?php echo $varname; ?>"/>  </li>
                    <li>密　码：<input class="input_txt" type="password" name="password"/>  </li>
                    <li><input type="checkbox" name="re"/>记住用户名  </li>
                </ul>
                <input class="submit" type="submit" value="登　　录"/>
                <div id="kin"><?php echo $time; ?></div>
            </form> 
        </div>
    </body>
</html>
